// Form field constants

export const LOGIN_FORM_FIELDS = {
  EMAIL: 'email',
  PHONE: 'phone',
  PASSWORD: 'password',
  VERIFICATION_CODE: 'verificationCode',
  REMEMBER_ME: 'rememberMe',
  LOGIN_TYPE: 'loginType', // 'email' or 'phone'
};

export const REGISTER_FORM_FIELDS = {
  NAME: 'name',
  EMAIL: 'email',
  PHONE: 'phone',
  PASSWORD: 'password',
  CONFIRM_PASSWORD: 'confirmPassword',
  VERIFICATION_CODE: 'verificationCode',
  AGREE_TO_TERMS: 'agreeToTerms',
  REGISTER_TYPE: 'registerType', // 'email' or 'phone'
};

export const ERROR_MESSAGES = {
  NETWORK_ERROR: 'Network error. Please check your connection.',
  UNEXPECTED_ERROR: 'An unexpected error occurred. Please try again.',
  SESSION_EXPIRED: 'Your session has expired. Please log in again.',
};

export const API_ENDPOINTS = {
  LOGIN: '/auth/login',
  REGISTER: '/auth/register',
  LOGOUT: '/auth/logout',
  REFRESH: '/auth/refresh',
  ME: '/auth/me',
  FORGOT_PASSWORD: '/auth/forgot-password',
  RESET_PASSWORD: '/auth/reset-password',
  SEND_VERIFICATION_CODE: '/auth/send-verification-code',
  VERIFY_CODE: '/auth/verify-code',
  PHONE_LOGIN: '/auth/phone-login',
  PHONE_REGISTER: '/auth/phone-register',
};

export const PASSWORD_STRENGTH_LEVELS = {
  VERY_WEAK: 0,
  WEAK: 1,
  FAIR: 2,
  STRONG: 3,
  VERY_STRONG: 4,
};